import "./App.css";
import { BrowserRouter, Switch, Route, Redirect } from "react-router-dom";
import Login from "./pages/login";
import Register from "./pages/register";
import BaseLayout from "./layouts/base-layout";

function App() {
    return (
        <div className="App">
            <BrowserRouter>
                <Switch>
                    <Route path="/login" component={Login} />
                    <Route path="/register" component={Register} />
                    <Route path="/main" component={BaseLayout} />
                    <Redirect to="/login" />
                </Switch>
            </BrowserRouter>
        </div>
    );
}

export default App;
